import numpy as np 
import  matplotlib.pyplot as plt 
import time,os,sys

class paint:
    def __init__(self,file) -> None:
        calib = np.load(file)
        self.c_h = calib[:,:,1,:]
        self.c_v = calib[:,:,0,:]
        plt.ion()
        plt.figure(1)
        
        for i in range(180):
            for j in range(45):
                li =[]
               
                for k in range(12):
                    li.append(np.abs(self.c_h[i,j,k]))
                plt.plot(li)
                plt.draw()
                plt.pause(0.0001)
                plt.show()
                plt.clf()
#                 break 
            break
                
        
        
        pass
    
    
if __name__ == '__main__':
    file = '1.npy'
    p = paint(file)
    
    pass